home *** CD-ROM | disk | FTP | other *** search
- // Class definition for winquake.exe
-
- class Quake
- {
- /***************************************************************
- * Begin of required properties for all GOFs.
- * The 'Display' names should never be changed on these variables.
- ***************************************************************/
- [
- Display("Host Name"),
- Description("The name of the server."),
- Default("Quake Server"),
- AlwaysBrowserVisible,
- ]
- string hostname;
-
- [
- Display("Current Players"),
- Description("The current number of players connected to the server."),
- Readonly,
- AlwaysBrowserVisible
- ]
- uint32 currentclients;
-
- [
- Display("Maximum Players"),
- Description("The maximum number of players allowed on the server."),
- Default("8"),
- AlwaysBrowserVisible,
- CommandLineOnly
- ]
- uint32 maxplayers;
-
- [
- Display("Port"),
- Description("The UDP port the server is using."),
- Readonly,
- Default("26000") // This will be used when inserting a new server.
- ]
- uint32 port;
-
- [
- Display("Game Directory"),
- Description(
- "The directory used for additional map information. "
- "This indicates which mod the server is using."),
- CommandLineOnly,
- Default("id1"),
- ]
- string game;
-
- [
- Display("Extra Parameters"),
- Description(
- "This property can be used to pass additional command-line "
- "parameters to the game server."),
- Default("")
- ]
- string extraparam; // This name should never change.
-
- [
- Display("Initial Level"),
- Description("When the server first starts it will use this level."),
- ValueMap{
- "start","e1m1","e1m2","e1m3",
- "e1m4","e1m5","e1m6","e1m7",
- "e1m8","e2m1","e2m2","e2m3",
- "e2m4","e2m5","e2m6","e2m7",
- "e3m1","e3m2","e3m3","e3m4",
- "e3m5","e3m6","e3m7","e4m1",
- "e4m2","e4m3","e4m4","e4m5",
- "e4m6","e4m7","e4m8","end",
- "dm1","dm2","dm3","dm4","dm5",
- "dm6","dm7" },
- Values{
- "Introduction","Slipgate Complex","Castle Of The Damned","The Necropolis",
- "The Grisly Grotto","Gloom Keep","The Door To Chthon","The House Of Chthon",
- "Ziggurat Vertigo","The Installation","The Ogre Citadel","The Crypt Of Decay",
- "The Ebon Fortress","The Wizard's Manse","The Dismal Oubliette","Underearth",
- "Termination Central","The Vaults Of Zin","The Tomb Of Terror","Satan's Dark Delight",
- "Wind Tunnels","Chambers Of Torment","The Haunted Halls","The Sewage System",
- "The Tower Of Despair","The Elder God Shrine","The Palace Of Hate","Hell's Atrium",
- "The Pain Maze","Azure Agony","The Nameless City","Shub-Niggurath's Pit",
- "Place Of Two Deaths","Claustrophobopolis","The Abandoned Base","The Bad Place",
- "The Cistern","The Dark Zone","Aracnophobia" },
- Default("Gloom Keep")
- ]
- string initlevel;
-
-
- [
- Display("Current Level"),
- Description("The current map the server is using."),
- AlwaysBrowserVisible,
- Readonly,
- UsesValues("initlevel")
- ]
- string mapname;
-
- [
- Display("Time Limit"),
- Description(
- "The number of minutes the server will remain on a level. "
- "If this is 0 there is no time limit."),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 timelimit;
-
- [
- Display("Score Limit"),
- Description(
- "When a player's score reaches this level, the server will change "
- "to the next map. If this number is 0 there is no score limit."),
- AlwaysBrowserVisible,
- Default("0")
- ]
- uint32 fraglimit;
- /***************************************************************
- * End of required properties for all GOFs.
- ***************************************************************/
-
-
- [
- Display("Quake Protocol"),
- Description("The Quake protocol number the server is using."),
- Readonly,
- AlwaysBrowserVisible,
- ]
- string protocol;
-
- [
- Display("Cooperative Mode"),
- Description(
- "Enables cooperative play. When this "
- "property is enabled 'Deathmatch Mode' is ignored."),
- Default("False"),
- AfterLevelChange,
- ]
- boolean coop;
-
- [
- Display("Deathmatch Mode"),
- Description("Sets deathmatch options."),
- Values{
- "Disabled",
- "Weapons vanish, items respawn",
- "Weapons don't vanish, items don't respawn",
- "Weapons don't vanish, items respawn"},
- Default("Weapons vanish, items respawn")
- ]
- uint32 deathmatch;
-
- [
- Display("Command-line"),
- Description("The command-line used to launch the server."),
- AlwaysBrowserVisible,
- Readonly
- ]
- string cmdline;
-
- [
- Display("No Exit"),
- Description("If enabled players are not allowed to exit levels."),
- AlwaysBrowserVisible,
- Default("True")
- ]
- boolean noexit;
-
- [
- Display("Repeat Same Level"),
- Description("If enabled the server will always stay on the "
- "same map."),
- Default("False")
- ]
- boolean samelevel;
-
- [
- Display("Gravity"),
- Description("The gravity used in the game."),
- AlwaysBrowserVisible,
- Default("800")
- ]
- uint32 sv_gravity;
-
- [
- Display("Player Acceleration"),
- Description(
- "You can control the how long it takes the player to "
- "accelerate to full speed. If this value is lowered "
- "to 5 it will take the player twice as long reach "
- "maximum running speed."),
- Default("10")
- ]
- uint32 sv_accelerate;
-
- [
- Display("Aim Leniency"),
- Description(
- "This variable controls how lenient the server is when it "
- "comes to the player's aim. 0.93 allows a player to shoot "
- "a little off the target and still score a hit, 1.0 forces "
- "players to shoot dead on."),
- Default("1.0")
- ]
- string sv_aim;
-
- [
- Display("Friction"),
- Description("This variable controls player friction."),
- AlwaysBrowserVisible,
- Default("4")
- ]
- uint32 sv_friction;
-
- [
- Display("Maximum Player Speed"),
- Description("This variable controls the maximum player speed."),
- AlwaysBrowserVisible,
- Default("320")
- ]
- uint32 sv_maxspeed;
-
- [
- Display("Maximum Velocity"),
- Description("This variable controls the maximum object speed."),
- Default("2000")
- ]
- uint32 sv_maxvelocity;
-
- [
- Display("No Automatic Step"),
- Description("If enabled players will have to jump to go up stairs."),
- Default("False")
- ]
- boolean sv_nostep;
-
- [
- Display("Stop Speed"),
- Description(
- "The velocity at which players will start slowing down "
- "to stop their movement."),
- Default("100")
- ]
- uint32 sv_stopspeed;
-
- [
- Display("Tick Rate"),
- Description(
- "The amount of time (in seconds) between consecutive packets "
- "sent by the server to clients. Use 0.05 for LAN games and "
- "0.1 for games that will have modem players."),
- Default("0.05")
- ]
- string sys_ticrate;
-
- [
- Display("Team Play"),
- Description("Determines team play options."),
- Values{
- "Disabled",
- "Friendly fire disabled",
- "Friendly fire enabled" },
- AlwaysBrowserVisible,
- Default("Disabled")
- ]
- uint32 teamplay;
-
- [
- MethodVar,
- Display("Map Name"),
- Description(""),
- UsesValues("initlevel")
- ]
- string map;
-
- [
- Display("Set Level"),
- Description("Sets the map, but disconnects players while doing so."),
- ConsoleCommand("map %1")
- ]
- void SetLevel(MethodVar map);
-
- /***************************************************************
- * Begin of required methods for all GOFs.
- * The names of these methods should never be changed.
- ***************************************************************/
- [
- Display("Change Current Level"),
- Description("Changes the current level without disconnecting the players."),
- ConsoleCommand("changelevel %1")
- ]
- void ChangeLevel(MethodVar map);
-
- [
- Display("Set Property"),
- Description("Sets a server property."),
- ConsoleCommand("%1 \"%2\"")
- ]
- void SetProperty(string strVar, string strValue);
-
- /***************************************************************
- * End of required methods for all GOFs.
- ***************************************************************/
-
-
- /***************************************************************
- * Begin of recommended methods for all GOFs.
- * The names of these methods should never be changed.
- ***************************************************************/
- [
- Display("Kick Player from Server"),
- Description("Removes player from server."),
- ConsoleCommand("kick %1")
- ]
- void KickPlayerByName(string strName);
- /***************************************************************
- * End of recommended methods for all GOFs.
- ***************************************************************/
-
-
- [
- Display("Execute Config File"),
- Description("Executes a config file of console commands."),
- ConsoleCommand("exec %1")
- ]
- void Exec(string strMasterList);
-
- [
- Display("Status"),
- Description("Gets the status of the game server."),
- ConsoleCommand("status")
- ]
- void Status();
-
- };
-
-